﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Content.aspx.cs" Inherits="Sio.Mdm.Web.Uporabnik.Content" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>SIO - MDM :: Uporabnik : Content</title>

    <script type="text/javascript">
        var addTab = function(tabPanel, id, url, title) {
            tabPanel = tabPanel || TabPanel1;
            var tab = tabPanel.getComponent(id);
            if (!tab) {
                tab = tabPanel.add({
                    id: id,
                    title: title,
                    closable: true,
                    autoLoad: {
                        showMask: true,
                        url: url,
                        mode: "iframe",
                        maskMsg: "Loading " + title + "..."
                    }
                });
            }
            tabPanel.setActiveTab(tab);
        }
    </script>

</head>
<body id="mainForm">
    <form id="formContent" runat="server">
    <input runat="server" type="hidden" id="ImePriimek" value="drsr" title="asdf"/>
    <ext:ResourceManager ID="ResourceManager1" runat="server" />
    <ext:Viewport ID="Viewport1" runat="server" Layout="Border" Split="true">
        <Items>
            <ext:Panel ID="PanelLeviMenu" runat="server" Width="200" MinWidth="130" Border="false"
                Region="West" Layout="VBox" Split="true">
                <LayoutConfig>
                    <ext:VBoxLayoutConfig Padding="5" Align="Stretch" />
                </LayoutConfig>
                <Items>
                    <ext:Panel ID="PanelMenu" runat="server" Width="200" Layout="Accordion" Margins="5 0 5 0"
                        Flex="1">
                        <Items>
                            <ext:Panel ID="Panel5" runat="server" Title="Osebni podatki">
                                <Items>
                                    <ext:TreePanel ID="treeOsebniPodatki" runat="server" RootVisible="false">
                                        <Root>
                                            <ext:TreeNode Expanded="true">
                                                <Nodes>
                                                    <ext:TreeNode NodeID="Podrobnosti" Text="Podrobnosti" Icon="User">
                                                        <Listeners>
                                                            <Click Handler="addTab(TabNavigation, 'idPodrobnosti100', 'Akter.aspx', 'Podrobnosti');" />
                                                        </Listeners>
                                                    </ext:TreeNode>
                                                    <ext:TreeNode Text="Sprememba gesla" Icon="User">
                                                        <Listeners>
                                                            <Click Handler="#{SpremeniGeslo}.show();" />
                                                        </Listeners>
                                                    </ext:TreeNode>
                                                </Nodes>
                                            </ext:TreeNode>
                                        </Root>
                                    </ext:TreePanel>
                                </Items>
                            </ext:Panel>
                        </Items>
                    </ext:Panel>
                </Items>
            </ext:Panel>
            <sio:TabPanel runat="server" ID="TabNavigation" Region="Center" Split="true">
                <Defaults>
                    <ext:Parameter Name="border" Value="false" Mode="Raw">
                    </ext:Parameter>
                </Defaults>
                <Items>
                    <ext:Panel ID="idPodrobnosti100" runat="server" Region="center" Title="Podrobnosti">
                        <AutoLoad Url="Akter.aspx" Mode="IFrame" ShowMask="true" />
                    </ext:Panel>
                </Items>
            </sio:TabPanel>
        </Items>
    </ext:Viewport>
    <sio:Dialog runat="server" ID="SpremeniGeslo" Width="300" Height="200" Url="Spremenigeslo.aspx"
        DialogButtons="SaveClose">
    </sio:Dialog>
    </form>
</body>
</html>
